package com.gsm.phimhanhdong;

import java.util.Comparator;

import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;
import de.greenrobot.event.EventBus;

public class BackgroundTasks {

	private static ContentNetworkInterface cni;
	private EventBus eventBus;
	private Context context;
	private static String googleToken;

	public BackgroundTasks(Context context) {
		this.context = context;
		eventBus = EventBus.getDefault();
		cni = ContentNetworkInterface.getInstance().init(context);
	}

	public void clickBanner(String url) {
		cni.clickBanner(url);
	}

	public void getPlayListVideo(String playlist_id) {
		// TODO Auto-generated method stub
		cni.getPlayListVideo(playlist_id);
	}

	public void getVideoInfo(Playlist playlist) {
		// TODO Auto-generated method stub
		cni.getVideoInfo(playlist);
	}

	public void getmoredata(String playlist_id, String nextPageToken) {
		// TODO Auto-generated method stub
		cni.getMoreVideo(playlist_id, nextPageToken);
	}

	public void getMoreVideoInfo(Playlist playlist) {
		// TODO Auto-generated method stub
		cni.getMoreVideoInfo(playlist);
	}

	public void getListPlayList(String chanel_id) {
		// TODO Auto-generated method stub
		cni.getListPlayList(chanel_id);
	}

	public void getAccessToken(String request_token) {
		// TODO Auto-generated method stub
		cni.getAccessToken(request_token);
	}

	public void getBanner(String access_token) {
		// TODO Auto-generated method stub
		cni.getBanner(access_token);
	}

	public void getPopUp(String access_token) {
		// TODO Auto-generated method stub
		cni.getPopUp(access_token);
	}

	public void getRequestToken() {
		// TODO Auto-generated method stub
		cni.getRequestToken();
	}

	public void getBannerByPage(final String accessToken, final String store,
			final String page) {
		cni.getBannerByPage(accessToken, store, page);
	}

	public void getPlaylistForCheckUpdate(String chanelId) {
		// TODO Auto-generated method stub
		cni.getPlaylistForCheckUpdate(chanelId);
	}

	public void checkUpDate(String access_token) {
		// TODO Auto-generated method stub
		cni.checkUpdate(access_token);
	}

	public void getTextBanners(String accessToken, String store, String where) {
		cni.getTextBanners(accessToken, store, where);
	}

	public void getTopContent(String type, int cateId, String accessToken,
			int storeId, int start) {
		cni.getTopContent(type, cateId, accessToken, storeId, start);
	}

	public void onMenuItemClickListenner(String playlist_id, String title) {
		// TODO Auto-generated method stub
		cni.onMenuItemClickListenner(playlist_id, title);
	}

	public void onOptionMenuItemClick(Comparator likeComparator) {
		// TODO Auto-generated method stub
		cni.onOptionMenuItemClick(likeComparator);
	}

	public void registerGCM(String regId, String isRooted)
			throws NameNotFoundException {
		cni.registerDevice(context, regId, isRooted);
	}

}
